package com.yuefresh.dish;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.yuefresh.core.Model;


@Entity
@Table(name = "ds_dish_type")
public class DishType  extends Model {
	private static final long serialVersionUID = 1534214124234L;
	
	@Id
	@Column(name = "TYPE_ID")
	private String type_ID;
	@Column(name = "NAME")
	private String name;
	@Column(name = "MEMO")
	private String memo;
	@Column(name = "IMG_PATH")
	private String imgPath;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "MENU_FK")
	private Menu menu;
	
	public DishType() {}
	
	public String getType_ID() {
		return type_ID;
	}
	public void setType_ID(String typeID) {
		type_ID = typeID;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	
	public String getImgPath() {
		return imgPath;
	}
	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	public Menu getMenu() {
		return menu;
	}
	public void setMenu(Menu menu) {
		this.menu = menu;
	}
}
